//
// Created by Administrator on 2021/10/20.
//

#ifndef PARTJOB_C___NODE_H
#define PARTJOB_C___NODE_H
class Node
{
public:
    Node() : data(0), next(nullptr) {}
    Node(int theData, Node *newNext) :
            data(theData), next(newNext){}
    Node* getNext() const { return next; }
    int getData( ) const { return data; }
    void setData(int theData) { data = theData; }
    void setNext(Node *newNext) { next = newNext; }
    ~Node(){}
private:
    int data;
    Node *next;    //pointer that points to next node
};
#endif //PARTJOB_C___NODE_H
